<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ko">
<head>
	<title>배너관리 (메인)</title>
	<script src="../js/common.js" type="text/javascript"></script>
	<script type="text/javascript">
	// 페이지 이동
	function setPage(page)
	{
		var frm = document.forms["listMap"];
		frm.action = "/admin/main_bannermng_list.do";
		frm.page.value = page;
		frm.submit();
	}
	</script>
</head>

<body>	
		<!-- 본문 영역 -->
		<div id="contents">
			<!-- 제목 및 Location 영역 -->
			<div id="location">
				<h3 id="contentTitle"></h3>
				<div id="locationPath"></div>
			</div>
			<script type="text/javascript">
			// 현재 메뉴 경로를 설정한다.
			var pagePath = licationPth.split("_");
			var pathStr = "홈";
			for( var i=0; i < pagePath.length; i++ )
			{
				if (i+1 >= pagePath.length)
					pathStr += " &gt; <strong>" + pagePath[i] + "</strong>";
				else
					pathStr += " &gt; " + pagePath[i]
			}
			document.getElementById("contentTitle").innerHTML = pagePath[ pagePath.length - 1 ];
			document.getElementById("locationPath").innerHTML = pathStr;
			</script>
			
		<form id="listMap" name="listMap" method="get">
		<input type="hidden" name="page" value="1" />
		<input type="hidden" name="conditions" value="${commandMap.conditions}" />
		<input type="hidden" name="words" value="${commandMap.words}" />
		</form>
			<!-- 본문 내용 -->
			<div id="content">
				<div class="ar mt15"><span class="button btnProc01"><a href="#" onclick="checkAuth('../admin/main_bannermng_write.do')">등록</a></span></div>
				<table cellpadding="0" cellspacing="0" border="0" class="tbl_type01 mt20">
					<colgroup>
						<col width="120px" />
						<col width="120px" />
						<col width="120px" />
						<col width="120px" />
					</colgroup>
					<thead>
						<tr>
							<th>No</th>
							<th>배너 제목 (메인)</th>
							<th>표시 여부</th>
						</tr>
					</thead>
					<tbody>
					<c:forEach items="${listMap}" var="listMap" varStatus="status">
						<tr>
							<td><a href="#" onclick="checkAuth('main_bannermng_edit.do?banner_id=${listMap.BANNER_ID}')">${listMap.BANNER_ID}</td>
							<td><a href="#" onclick="checkAuth('main_bannermng_edit.do?banner_id=${listMap.BANNER_ID}')">${listMap.BANNER_TITLE}</td>
							<td>${listMap.BANNER_DISPLAY_YN}</td>
						</tr>
					</c:forEach>
					</tbody>
				</table>
				<%@include file="/include/pageList.jsp"%>
			</div>
		</div>
</body>
</html>